package com.effectiv.gooruda.rest.api.operation;

import java.util.Map;

import com.effectiv.gooruda.rest.api.domain.Session;
import com.effectiv.gooruda.rest.api.domain.User;


public interface SessionOperations {
	Map<String,String> getAttributes(String sessionId);
	Object getAttribute(String sessionId, String key);
	
	Session findSessionByUser(String userName);
	Session create(String userName);
	Session create(User user);
	
	void invalidate(String sessionId);
	Session removeAllAttributes(String sessionId);
	Session removeAttribute(String sessionId, String key);
	
	Session setAttribute(String sessionId, String key, String value);
}
